package tt.dz.service.impl;

import java.io.Serializable;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import tt.dz.common.Constants;
import tt.dz.dao.pro.AlipayLogDao;
import tt.dz.entity.AlipayLog;
import tt.dz.service.AlipayLogService;

/**
 * 阿里支付日志业务接口实现类
 * @author Administrator
 *
 */
@Service
public class AlipayLogServiceImpl implements AlipayLogService {

	/**
	 * 支付宝日志操作dao
	 */
	@Resource
	AlipayLogDao<AlipayLog> alipayLogDao;

	@Override
	public String addAlipayLog(AlipayLog alipayLog) {
		
		Serializable s = alipayLogDao.save(alipayLog);
		if(s!=null){
			return Constants.JsonResponseCode.SUCCESS;
		}
		return Constants.JsonResponseCode.FAIL;
	}
}
